package com.nulldev.util.web.YouTubeExtractor.formats;

public enum VideoCodec {
	NONE(false),
	AV1(true),
	AV2(true),
	H264(false),
	H265(false),
	@Deprecated
	VP8(true),
	VP9(true),
	@Deprecated
	MPEG4(false), /* 3GPP */
	@Deprecated
	H263(false)

	;

	public final boolean isOpenCodec;

	private VideoCodec(final boolean isOpen) {
		this.isOpenCodec = isOpen;
	}

	public boolean isOpenCodec() {
		return this.isOpenCodec;
	}

	public static final VideoCodec[] FAMILY_VPX = new VideoCodec[]
		{ VP8, VP9 };
	public static final VideoCodec[] FAMILY_MPEG = new VideoCodec[]
		{ H263, H264, H265, MPEG4 };
	public static final VideoCodec[] FAMILY_AOM = new VideoCodec[]
		{ AV1, AV2 };
}
